let carousels = $(".box .carousel");
//轮播切换控制信号量
let count = 0;
let isDuring = false;
$("#next").click(function () {
  //节流操作
  if (isDuring) {
    return;
  } else {
    setTimeout(() => {
      isDuring = false;
    }, 1000);
  }
  isDuring = true;
  count++;
  let deg = count * -90;
  carousels.css("transform", `rotateX(${deg}deg`);
  // carousels.each(function () {
  //   $(this).css("transform", `rotateX(${deg}deg`);
  // });
});
